﻿using System;
using AutoMapper;
using General.Entities.Students;
using General.Mvc.Models.Dtos;

namespace General.Mvc.Profiles
{
    public class StudentProfile:Profile
    {
        public StudentProfile()
        {
            CreateMap<Students,StudentsDto>()
                .ForMember(dest=>dest.stuname,
                opt=>opt.MapFrom(src=>src.name));
        }
    }
}
